# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=dcnnt
pkgver=0.9.2
pkgrel=0
pkgdesc="UI-less tool to connect Android phone with desktop"
url="https://github.com/cyanomiko/dcnnt-py"
arch="noarch"
license="MIT"
depends="py3-pycryptodome"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/cyanomiko/dcnnt-py/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-py-$pkgver"
options="!check" # No tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl

	install -Dm644 doc/*.md -t "$pkgdir"/usr/share/doc/$pkgname
	install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="
2fda529e5be310a50fe0101d758f583e69a3136c19779e3a4bf944b98dd51433f93fddd424b016afe31fa8197cf12141cbe36265bd62c76b9659a907d046df6e  dcnnt-0.9.2.tar.gz
"
